package com.cj.file.entity;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Repository;

/**
 * @Author cheng jun
 * @Description:
 * @Date 2021/7/10 22:51
 */
/**
 * 支持Nacos的动态刷新功能
 */
@RefreshScope
@Repository
@ConfigurationProperties(prefix = "server")
@Data
public class ServiceProperties {

    /**
     * 端口
     */
    private String port;
}
